package com.kaiming.factory;

import com.kaiming.dao.UserDao;
import com.kaiming.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * ClassName: MyBeanFactory
 * Package: com.kaiming.factory
 * Description:
 *
 * @Auther gongkaiming
 * @Create 2025/10/16 21:05
 * @Version 1.0
 */
public class MyBeanFactory3 implements FactoryBean<UserDao> {
    

    @Override
    public UserDao getObject() throws Exception {
        return new UserDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return UserDao.class;
    }
}
